<?php

class Empeval_Methods_Response_SetBonusGoalsFromPeriod {
	
	/**
	 *
	 * @var Empeval_Methods_Data_ResponseStatus
	 */
	public $responseStatus;
	
	/**
	 * 
	 * @var Empeval_Methods_Data_BonusPeriod
	 */
	public $bonusPeriod = null;
	
	public function __construct($status, EmpevalBonusGoalsForms $bonusGoalsForm) {
		$this->responseStatus = new Empeval_Methods_Data_ResponseStatus($status);
		if ($bonusGoalsForm->getBonusPeriods() instanceof EmpevalBonusPeriods)
			$this->bonusPeriod = new Empeval_Methods_Data_BonusPeriod($bonusGoalsForm->getBonusPeriods(), $bonusGoalsForm->getUserPositions(), $bonusGoalsForm->getYear());
	}
	
}